<template>
  <div class="home">
    <h1>首页</h1>
    <!-- 需求：在375px设计稿尺寸下，需要四个div元素，且宽高为48px*48px -->
    <!-- 方案1：rem适配，项目中所有px单位全部替换成rem单位。rem是根据html的font-size单位计算最终的px。 -->
    <div class="navs">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>
    <p>测试</p>
  </div>
</template>

<script>
export default {
  name: "HomeView",
  created() {},
};
</script>

<style lang="scss" scoped>
.home {
  margin-top: 90px;
  background-color: red;
  height: calc(100vh - 90px);
  > h1 {
    // height: 10rem;
    height: 160px;
  }
  > .navs {
    display: flex;
    justify-content: space-around;
    > div {
      // width: 48rem;
      // height: 48rem;
      width: 48px;
      height: 48px;
      background-color: yellow;
      border-radius: 50%;
    }
  }
  p {
    width: 93.75rem;
    height: 12rem;
    margin: 7rem 0;
  }
}
</style>
